package com.hifar.test.api.model;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 数据响应模型
 * 用于数据资产管理平台的接口响应
 */
public class DataResponse {
    
    /**
     * 响应状态
     * 1: 成功, -1: 失败
     */
    @JsonProperty("status")
    private Integer status;
    
    /**
     * 响应消息
     */
    @JsonProperty("message")
    private String message;
    
    /**
     * 响应数据
     */
    @JsonProperty("data")
    private ResponseData data;
    
    public DataResponse() {}
    
    public DataResponse(Integer status, String message, ResponseData data) {
        this.status = status;
        this.message = message;
        this.data = data;
    }
    
    // Getters and Setters
    public Integer getStatus() {
        return status;
    }
    
    public void setStatus(Integer status) {
        this.status = status;
    }
    
    public String getMessage() {
        return message;
    }
    
    public void setMessage(String message) {
        this.message = message;
    }
    
    public ResponseData getData() {
        return data;
    }
    
    public void setData(ResponseData data) {
        this.data = data;
    }
    
    @Override
    public String toString() {
        return "DataResponse{" +
                "status=" + status +
                ", message='" + message + '\'' +
                ", data=" + data +
                '}';
    }
}
